<?php
return [
    "name" => "zf_公共",
    "list" => [
        "获取手机验证码" => [
            "desc"  => "获取手机验证码<br/>只获取验证码:不传参<br/>注册:ext code图形验证码，img_token图形验证码token<br/>忘记密码:ext code图形验证码，img_token图形验证码token<br/>支付密码:ext code图形验证码，img_token图形验证码token<br/><br/><br/>",
            "url"   => "/zfcom/comcodephone/getcode",
            "method"=> "post",
            "param" => [
                "type" => [
                    "lable"         => "类型",
                    "type"          => "text",
                    "placeholder"   => "register注册 forget忘记密码 paypwd支付密码",
                    "value"         => "",
                ],
                "phone" => [
                    "lable"         => "手机号码",
                    "type"          => "text",
                    "placeholder"   => "手机号码",
                    "value"         => "",
                ],
                "ext" => [
                    "lable"         => "参数",
                    "type"          => "text",
                    "placeholder"   => "参数",
                    "value"         => "",
                ],
            ],
"reback_demo" =><<<EOT
{
    "code": 0,
    "version": "1",
    "msg": "操作成功",
    "data": {
        "phone_token": "499ad26e1454aa60fcd3c426c8267db6",
        "code": "6218"
    },
    "count": 0
}

EOT
,
        ],
        "获取图形验证码" => [
            "desc"  => "获取图形验证码",
            "url"   => "/zfcom/comcodeimg/getcode",
            "method"=> "post",
            "param" => [
            ],
"reback_demo" =><<<EOT
{
    "code": 0,
    "version": "1",
    "msg": "操作成功",
    "data": {
        "img_token": "d32206d7c28df02137de0f75360c0079",
        "url": "http: //api.yqxv1.local//com/captcha?token=d32206d7c28df02137de0f75360c0079",
        "end_time": 1528419261
    },
    "count": 0
}
EOT
,
        ],
        "网站图片" => [
            "desc"  => "获取网站文字",
            "url"   => "/zfcom/com/getimg",
            "method"=> "post",
            "param" => [
                "id" => [
                    "lable"         => "id",
                    "type"          => "text",
                    "placeholder"   => "图片id",
                    "value"         => "",
                ],
            ],
"reback_demo" =><<<EOT
{
    "code": 0,
    "version": "1",
    "msg": "操作成功",
    "data":"",
    "count": 0
}

EOT
,
        ],
        "网站文字" => [
            "desc"  => "获取网站文字",
            "url"   => "/zfcom/com/getword",
            "method"=> "post",
            "param" => [
                "uuid" => [
                    "lable"         => "uuid",
                    "type"          => "text",
                    "placeholder"   => "uuid",
                    "value"         => "",
                ],
            ],
            "reback_demo" =><<<EOT
{
    "code": 0,
    "version": "1",
    "msg": "操作成功",
    "data": {
        "id": 33,
        "uuid": "wxts",
        "title": "温馨提示",
        "content": "<p>温馨提示： 本商城所有产品都是自主生产，酱菜系列均没有添加任何防腐剂，所以开盖后无法长期保存，请尽快食用！</p>",
        "sort": 0,
        "create_time": 1520500846,
        "update_time": 1524894598,
        "h5_url": "http: //api.yqxv1.local/h5/getword?id=33"
    },
    "count": 0
}

EOT
            ,
        ],
        "验证图形验证码" => [
            "desc"  => "验证图形验证码",
            "url"   => "/zfcom/comcodeimg/checkcodeimg",
            "method"=> "post",
            "param" => [
                "img_token" => [
                    "lable"         => "img_token值",
                    "type"          => "text",
                    "placeholder"   => "上一步获取的img_token值",
                    "value"         => "",
                ],
                "code" => [
                    "lable"         => "验证码",
                    "type"          => "text",
                    "placeholder"   => "验证码",
                    "value"         => "",
                ],
            ],
"reback_demo" =><<<EOT
{
    "code": 100,
    "version": "0",
    "msg": "验证通过!",
    "data": [
    ]
}

EOT
,
        ],
        "获取token用户信息" => [
            "desc"  => "获取token用户信息",
            "url"   => "/zfcom/com/getinfo",
            "method"=> "post",
            "param" => [
                "token" => [
                    "lable"         => "TOKEN码",
                    "type"          => "text",
                    "placeholder"   => "token",
                    "value"         => "",
                ],
            ],
"reback_demo" =><<<EOT
{
    "code": 0,
    "version": "1",
    "msg": "操作成功",
    "data": {
        "id": 2,
        "openid": "qq",
        "username": "aa30ef428ba22af6",
        "name": "asasasa",
        "phone": "18696848835",
        "level": 0,
        "vip_sum_nums": 0,
        "vip_nums": 0,
        "pic": "",
        "password": "3da47bca2ca9a50a1d92c9e011730db7",
        "s_password": "",
        "money": "0.00",
        "money_jf": "50.00",
        "money_sy": "0.00",
        "money_tg": "0.00",
        "sex": 0,
        "age": 0,
        "reg_ip": "0",
        "last_login_time": 1528335137,
        "login_times": 2,
        "last_login_ip": "127.0.0.1",
        "token": null,
        "wap_token": "253c10e74f8c3be3cdc0a1272ca6b7e2",
        "app_token": "2d7cc47454e6661951f80b2cef48f5de",
        "tuisong_token": "",
        "status": 0,
        "v": 1,
        "create_time": 0,
        "update_time": 1528335137,
        "s_id": 0,
        "s_tree": ",
        0,
        1,
        ",
        "s_level": 2,
        "s_nums": 0
    },
    "count": 0
}
EOT
,
        ],
        "获取幻灯列表" => [
            "desc"  => "获取幻灯列表",
            "url"   => "/zfcom/slide/lists",
            "method"=> "post",
            "param" => [
                "cat_id" => [
                    "lable"         => "分类id",
                    "type"          => "text",
                    "placeholder"   => "分类id",
                    "value"         => "1",
                ],
                "keyword" => [
                    "lable"         => "搜索关键词",
                    "type"          => "text",
                    "placeholder"   => "搜索关键词",
                    "value"         => "",
                ],
                "page" => [
                    "lable"         => "当前页",
                    "type"          => "text",
                    "placeholder"   => "当前页",
                    "value"         => "1",
                ],
                "limit" => [
                    "lable"         => "条数",
                    "type"          => "text",
                    "placeholder"   => "条数",
                    "value"         => "12",
                ],
            ],
"reback_demo" =><<<EOT
{
    "code": 0,
    "version": "1",
    "msg": "操作成功",
    "data": [
        {
            "title": "1",
            "pic": "/uploads//images/2018/06/08/68cf6567edc9b78038d6b5bb04d3dd4e.jpeg",
            "url": "/",
            "type": "0商品详情 1活动页 2商品列表",
            "ext": "2"
        }
    ],
    "count": 0
}

EOT
,
        ],
        "获取文章分类" => [
            "desc"  => "获取文章分类",
            "url"   => "/zfcom/articlecat/lists",
            "method"=> "post",
            "param" => [
                "parent_id" => [
                    "lable"         => "上级分类id, 0为顶级分类",
                    "type"          => "text",
                    "placeholder"   => "上级分类id",
                    "value"         => "",
                ],
                "keyword" => [
                    "lable"         => "搜索关键词",
                    "type"          => "text",
                    "placeholder"   => "搜索关键词",
                    "value"         => "",
                ],
                "page" => [
                    "lable"         => "当前页",
                    "type"          => "text",
                    "placeholder"   => "当前页",
                    "value"         => "1",
                ],
                "limit" => [
                    "lable"         => "条数",
                    "type"          => "text",
                    "placeholder"   => "条数",
                    "value"         => "12",
                ],
            ],
"reback_demo" =><<<EOT
{
    "code": 0,
    "version": "1",
    "msg": "操作成功",
    "data": [
        {
            "id": 7,
            "parent_id": 0,
            "cat_title": "公告",
            "cat_tree": ",
            0,
            ",
            "sort": 1,
            "level": 0,
            "create_time": 1520492503,
            "update_time": 1522138451,
            "delete_time": null
        },
        {
            "id": 1,
            "parent_id": 0,
            "cat_title": "帮助中心",
            "cat_tree": ",
            0,
            ",
            "sort": 1,
            "level": 0,
            "create_time": 1520484128,
            "update_time": 1522138677,
            "delete_time": null
        }
    ],
    "count": 0
}

EOT
,
        ],
        "获取文章列表" => [
            "desc"  => "获取文章分类",
            "url"   => "/zfcom/article/lists",
            "method"=> "post",
            "param" => [
                "cat_id" => [
                    "lable"         => "分类id",
                    "type"          => "text",
                    "placeholder"   => "分类id",
                    "value"         => "",
                ],
                "type" => [
                    "lable"         => "本分类or子分类",
                    "type"          => "text",
                    "placeholder"   => "0：搜索本类, 1：搜索子分类",
                    "value"         => "",
                ],
                "keyword" => [
                    "lable"         => "搜索关键词",
                    "type"          => "text",
                    "placeholder"   => "搜索关键词",
                    "value"         => "",
                ],
                "page" => [
                    "lable"         => "当前页",
                    "type"          => "text",
                    "placeholder"   => "当前页",
                    "value"         => "1",
                ],
                "limit" => [
                    "lable"         => "条数",
                    "type"          => "text",
                    "placeholder"   => "条数",
                    "value"         => "12",
                ],
            ],
"reback_demo" =><<<EOT
{
    "code": 0,
    "version": "1",
    "msg": "操作成功",
    "data": [
        {
            "id": 7,
            "parent_id": 0,
            "cat_title": "公告",
            "cat_tree": ",
            0,
            ",
            "sort": 1,
            "level": 0,
            "create_time": 1520492503,
            "update_time": 1522138451,
            "delete_time": null
        },
        {
            "id": 1,
            "parent_id": 0,
            "cat_title": "帮助中心",
            "cat_tree": ",
            0,
            ",
            "sort": 1,
            "level": 0,
            "create_time": 1520484128,
            "update_time": 1522138677,
            "delete_time": null
        }
    ],
    "count": 0
}

EOT
,
        ],
        "获取文章详情" => [
            "desc"  => "获取文章详情",
            "url"   => "/zfcom/article/detail",
            "method"=> "post",
            "param" => [
                "id" => [
                    "lable"         => "文章id",
                    "type"          => "text",
                    "placeholder"   => "文章id",
                    "value"         => "",
                ],
            ],
"reback_demo" =><<<EOT
{
    "code": 0,
    "version": "1",
    "msg": "操作成功",
    "data": {
        "info": {
            "id": 15,
            "title": "用户须知",
            "keyword": "",
            "description": "",
            "pic": "",
            "content": "<p><br/></p><p>云鼎易购于2018年3月正式上线，致力于成为网上超市，为顾客提供优质的丰富的商品选择以及无与伦比的购物体验，让顾客的生活更便捷。</p><p>目前，云鼎易购在线销售的商品，包括食品饮料、酒水、进口食品、生鲜，保健用品，个人美护，母婴用品，家居商品，家用电器，服饰鞋靴、厨卫清洁、手机数码及礼品卡等。</p><p><br/></p><p><img src=\"http: //shop.ydyigo.com/img/ArticleImg/content/NIP93916118rJ.jpg\"/></p>",
            "views": 0,
            "create_time": 1520484474,
            "h5_url": "http: //api.yqxv1.local/h5/articledetail?id=15"
        }
    },
    "count": 0
}

EOT
,
        ],
        "获取文件配置" => [
            "desc"  => "获取文件配置,多个key值逗号隔开",
            "url"   => "/zfcom/com/getsys",
            "method"=> "post",
            "param" => [
                "config_key" => [
                    "lable"         => "配置KEY",
                    "type"          => "text",
                    "placeholder"   => "type.shop_withdraw_fee:手续费比例",
                    "value"         => "",
                ],
            ],
"reback_demo" =><<<EOT
{
    "code": 0,
    "version": "1",
    "msg": "操作成功",
    "data": {
        "expire_time": 1200
    },
    "count": 0
}

EOT
,
        ],
        "获取系统配置" => [
            "desc"  => "获取系统配置",
            "url"   => "/zfcom/com/deploy",
            "method"=> "post",
            "param" => [
                "uuid" => [
                    "lable"         => "uuid",
                    "type"          => "text",
                    "placeholder"   => "",
                    "value"         => "",
                ],
            ],
"reback_demo" =><<<EOT
{
    "code": 0,
    "version": "1",
    "msg": "操作成功",
    "data": "114",
    "count": 0
}
EOT
            ,
        ],
        "获取地区列表" => [
            "desc"  => "获取配置",
            "url"   => "/zfcom/com/getComAddress",
            "method"=> "post",
            "param" => [
                "pid" => [
                    "lable"         => "父级ID",
                    "type"          => "text",
                    "placeholder"   => "父级ID",
                    "value"         => "",
                ],
            ],
"reback_demo" =><<<EOT
{
    "code": 0,
    "version": "1",
    "msg": "操作成功",
    "data": [
        {
            "id": 52,
            "name": "北京",
            "parent_id": 2
        }
    ],
    "count": 0
}
EOT
,
        ],
        "导航列表" => [
            "desc"  => "导航列表",
            "url"   => "/zfcom/nav/lists",
            "method"=> "post",
            "param" => [
                "cat_id" => [
                    "lable"         => "分类id",
                    "type"          => "text",
                    "placeholder"   => "分类id",
                    "value"         => "",
                ],
            ],
"reback_demo" =><<<EOT
{
    "code": 0,
    "version": "1",
    "msg": "操作成功",
    "data": [
    ],
    "count": 0
}
EOT
,
        ],
        "网站碎片" => [
            "desc"  => "网站碎片",
            "url"   => "/zfcom/patch/lists",
            "method"=> "post",
            "param" => [
                "uuid" => [
                    "lable"         => "uuid",
                    "type"          => "text",
                    "placeholder"   => "uuid",
                    "value"         => "",
                ],
            ],
"reback_demo" =><<<EOT
{
    "code": 0,
    "version": "1",
    "msg": "操作成功",
    "data": {
        "id": 5,
        "uuid": "shop_index_bktj",
        "cat_title": "商城首页爆款推荐",
        "sort": 0,
        "childlist": [
            {
                "title": "大标题",
                "sort": 8,
                "content": "爆品推荐"
            },
            {
                "title": "小标题",
                "sort": 7,
                "content": "好货超便宜"
            },
            {
                "title": "带价格的标题",
                "sort": 5,
                "content": "恩兰卫生巾￥168"
            },
            {
                "title": "点击跳转地址",
                "sort": 0,
                "content": "/page/goods/detail?id=88"
            },
            {
                "title": "商品图",
                "sort": 0,
                "content": "/uploads//images/2018/06/13/80e540a2323f200f9d7960cce4f61056.png"
            }
        ]
    },
    "count": 0
}
EOT
,
        ],
    ],

];
